package com.lu.statistics.entity.front.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Pattern;
@Getter
@Setter
@ApiModel(value = "手机登录请求")
public class PhoneLoginRequest {
    @ApiModelProperty(value = "手机号", required = true, name = "telephone", dataType = "string")
    @Pattern(regexp = "^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,6-8])|(18[0-9])|170)\\d{8}$", message = "电话号码格式不正确")
    public String telephone;
    @ApiModelProperty(value = "验证码", required = true, name = "captcha", dataType = "int")
    public Integer captcha;
}
